package com.common.method;

import java.io.File;

public class ChatHelper {
	private static final String SAVE_PATH = "/iyr/v/";
	private static String mVoiceSavePath = null;

	public static String getVoiceSavePath() {
		if (mVoiceSavePath == null || mVoiceSavePath.equals("")) {
			File file = new File(
					android.os.Environment.getExternalStorageDirectory()
							+ SAVE_PATH);
			if (!file.exists()) {
				file.mkdirs();
			}
			mVoiceSavePath = android.os.Environment.getExternalStorageDirectory()
					+ SAVE_PATH;
		} 
		return mVoiceSavePath;

	}
	
	public static String getVoiceTextWidth(int time){
		String result="";
		if(time<=1){
			result="  ";
		}else if(time<=2){
			result=" 	 ";
		}else if(time<=3){
			result=" 		 ";
		}else if(time<=4){
			result=" 			 ";
		}else if(time<=5){
			result=" 				 ";
		}else if(time<=6){
			result=" 					 ";
		}else if(time<=7){
			result=" 						 ";
		}else if(time<=8){
			result=" 							 ";
		}else {
			result="								  ";
		}
		return result;
		
	}
}
